package io.renren.sf.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author cyl_txw
 * @email cyl_txw@gmail.com
 * @date 2021-04-06 13:32:31
 */
@Data
@TableName("hz_cb_unit")
public class CbUnitEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 单元id
	 */
	@TableId(type = IdType.ID_WORKER)
	private Long id;
	/**
	 * 单元名称
	 */
	private String name;
	/**
	 * 单元顺序
	 */
	private Integer uorder;
	/**
	 * 目录id
	 */
	private Long cid;

	@TableField(exist = false)
	private List<CbChapterEntity> chapters;

}
